@echo off

rem 禁止edge更新
if exist "%ProgramFiles(x86)%\Microsoft\EdgeUpdate\MicrosoftEdgeUpdate.exe" (ren "%ProgramFiles(x86)%\Microsoft\EdgeUpdate\MicrosoftEdgeUpdate.exe" "MicrosoftEdgeUpdate.exe.bak")
if exist "%ProgramFiles%\Microsoft\EdgeUpdate\MicrosoftEdgeUpdate.exe" (ren "%ProgramFiles%\Microsoft\EdgeUpdate\MicrosoftEdgeUpdate.exe" "MicrosoftEdgeUpdate.exe.bak")

rem 64%ProgramFiles(x86)%\Microsoft\EdgeUpdate\MicrosoftEdgeUpdate.exe
rem 32%ProgramFiles%\Microsoft\EdgeUpdate\MicrosoftEdgeUpdate.exe

rem task
schtasks /Change /DISABLE /TN "\MicrosoftEdgeUpdateTaskMachineCore"
schtasks /Change /DISABLE /TN "\MicrosoftEdgeUpdateTaskMachineUA"
rem service
net stop MicrosoftEdgeElevationService
net stop edgeupdate
net stop edgeupdatem
sc config MicrosoftEdgeElevationService start= disabled
sc config edgeupdate start= disabled
sc config edgeupdatem start= disabled


pause